<template>
  <div id="tic" class="app">
    <router-view />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import { alert, notify } from 'tap-ui/src/utils/topscomm'
export default {
  name: 'App',
  data() {
    return {}
  },
  computed: {
    ...mapGetters(['elementIds'])
  },
  methods: {
    handleMessage(message) {
      notify({ title: message.title, type: 'info', message: message.content })
    }
  },
  created() {
    // 页面刚进入时开启长连接
    // this.webSocket.initWebSocket('topscomm.cbo.queue.notice.' + store.getters.clientId, this.handleMessage)
  },
  destroyed: function() {
    // 关闭
    // this.webSocket.webSocketClose()
  }
}
</script>
